import { http } from "@/utils/http.js";

// 收藏/取消收藏
export const collectApi = (data) => {
  return http.request({
    method: "POST",
    url: "user/relation/collect",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 收藏状态
export const stateApi = (data) => {
  return http.request({
    method: "GET",
    url: "user/relation/state",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 收藏列表
export const collectionListApi = (data) => {
  return http.request({
    method: "GET",
    url: "user/relation/list",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

